Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
#include <netinet/in.h>
#include <xenctrl.h>
#include <xs.h>
+#include <sys/wait.h> /* for pid_t */
typedef void (*libxl_log_callback)(void *userdata, int loglevel, const char *file,
int line, const char *func, char *s);
alldigit = 1;
for (i = 0; p[i]; i++) {
- if (!isdigit(p[i])) {
+ if (!isdigit((uint8_t)p[i])) {
alldigit = 0;
break;
}
int bytes;
int ret;
- seek_ret = lseek64(fd, i << PAGE_SHIFT, SEEK_SET);
+ seek_ret = lseek(fd, i << PAGE_SHIFT, SEEK_SET);
total = 0;
while ( total < PAGE_SIZE )